import request from '@/utils/request'

export function loginByUsername(data = {}) {
  var { password = '', username = '' } = data || {}
  return request({
    url: '/user/login',
    method: 'get',
    params: {
      password: password,
      username: username
    }
  })
}

export function logout(data = {}) {
  return request({
    url: '/user/logout',
    method: 'get',
    params: data
  })
}

export function getUserInfo(data = {}) {
  return request({
    url: '/user/getUserInfo',
    method: 'get',
    params: data
  })
}
export function resetPassword(data = {}) {
  return request({
    url: '/user/resetPassword',
    method: 'get',
    params: data
  })
}

